package com.snooker.snooker.controller;

import com.github.pagehelper.PageInfo;
import java.util.*;

/**
 * @Description: 基础controller
 * @Param:
 * @return:
 * @Author: fenghouzhi
 * @Date: 1:47 PM 2018/11/6
 */
public class BaseController {

  Map<String, Object> getDataTable(PageInfo<?> pageInfo) {
    Map<String, Object> rspData = new HashMap<>(2);
    rspData.put("rows", pageInfo.getList());
    rspData.put("total", pageInfo.getTotal());
    return rspData;
  }

}
